package com.sws.rel.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sws.common.annotation.Excel;
import com.sws.common.core.domain.BaseEntity;

/**
 * 人员-设备关联管理对象 person_device_rel
 *
 * @author cx
 * @date 2025-07-02
 */
public class PersonDeviceRel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 人员PID */
    @Excel(name = "人员PID")
    private String personPid;

    private String personName; // 新增人员姓名属性

    /** 设备号Sn */
    @Excel(name = "设备号Sn")
    private String deviceSn;

    /** 同步状态(0:已同步 1:待同步 2:同步失败) */
    @Excel(name = "同步状态(0:已同步 1:待同步 2:同步失败)")
    private Long syncStatus;

    /** 最后同步时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后同步时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastSyncTime;

    /** 删除标志(0:正常 1:删除) */
    private String delFlag;


    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getPersonPid() {
        return personPid;
    }

    public void setPersonPid(String personPid) {
        this.personPid = personPid;
    }

    public void setDeviceSn(String deviceSn)
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn()
    {
        return deviceSn;
    }

    public void setSyncStatus(Long syncStatus)
    {
        this.syncStatus = syncStatus;
    }

    public Long getSyncStatus()
    {
        return syncStatus;
    }

    public void setLastSyncTime(Date lastSyncTime)
    {
        this.lastSyncTime = lastSyncTime;
    }

    public Date getLastSyncTime()
    {
        return lastSyncTime;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return "PersonDeviceRel{" +
                "id=" + id +
                ", personPid='" + personPid + '\'' +
                ", personName='" + personName + '\'' +
                ", deviceSn='" + deviceSn + '\'' +
                ", syncStatus=" + syncStatus +
                ", lastSyncTime=" + lastSyncTime +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
